<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="(item,i) in list" v-memo="[item.state]">
                <p>{{item.state}}</p>
                <input type="checkbox" :checked="item.state" @change="item.state=$event.target.checked">
                <span>{{item.name}}</span>
              
                <input type="text" :value="item.name" @input="item.name=$event.target.value">
            </li>
        </ul>
        
    </div>
    <script type="module">
        import { createApp } from "../assets/vue3/vue.esm-browser.js";
        createApp({
            data() {
                return {
                    list:[
                        {
                            name:'tom',
                            age:20,
                            state:false

                        },
                        {
                            name:'aa',
                            age:15,
                            state:false

                        }
                    ]
                        
                    
                }
            }
        }).mount("#app");
    </script>
</body>
</html>